package com.example.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.mapper.WarrantyClaimDetailMapper;
import com.example.domain.WarrantyClaimDetail;
import com.example.service.IWarrantyClaimDetailService;

/**
 * 单据跟踪1Service业务层处理
 * 
 * @author whj
 * @date 2024-09-15
 */
@Service
public class WarrantyClaimDetailServiceImpl implements IWarrantyClaimDetailService 
{
    @Autowired
    private WarrantyClaimDetailMapper warrantyClaimDetailMapper;

    /**
     * 查询单据跟踪1
     * 
     * @param id 单据跟踪1主键
     * @return 单据跟踪1
     */
    @Override
    public WarrantyClaimDetail selectWarrantyClaimDetailById(Long id)
    {
        return warrantyClaimDetailMapper.selectWarrantyClaimDetailById(id);
    }

    /**
     * 查询单据跟踪1列表
     * 
     * @param warrantyClaimDetail 单据跟踪1
     * @return 单据跟踪1
     */
    @Override
    public List<WarrantyClaimDetail> selectWarrantyClaimDetailList(WarrantyClaimDetail warrantyClaimDetail)
    {
        return warrantyClaimDetailMapper.selectWarrantyClaimDetailList(warrantyClaimDetail);
    }

    /**
     * 新增单据跟踪1
     * 
     * @param warrantyClaimDetail 单据跟踪1
     * @return 结果
     */
    @Override
    public int insertWarrantyClaimDetail(WarrantyClaimDetail warrantyClaimDetail)
    {
        return warrantyClaimDetailMapper.insertWarrantyClaimDetail(warrantyClaimDetail);
    }

    /**
     * 修改单据跟踪1
     * 
     * @param warrantyClaimDetail 单据跟踪1
     * @return 结果
     */
    @Override
    public int updateWarrantyClaimDetail(WarrantyClaimDetail warrantyClaimDetail)
    {
        return warrantyClaimDetailMapper.updateWarrantyClaimDetail(warrantyClaimDetail);
    }

    /**
     * 批量删除单据跟踪1
     * 
     * @param ids 需要删除的单据跟踪1主键
     * @return 结果
     */
    @Override
    public int deleteWarrantyClaimDetailByIds(Long[] ids)
    {
        return warrantyClaimDetailMapper.deleteWarrantyClaimDetailByIds(ids);
    }

    /**
     * 删除单据跟踪1信息
     * 
     * @param id 单据跟踪1主键
     * @return 结果
     */
    @Override
    public int deleteWarrantyClaimDetailById(Long id)
    {
        return warrantyClaimDetailMapper.deleteWarrantyClaimDetailById(id);
    }
}
